#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QTcpSocket>
#include <QFile>

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

private:
    Ui::Dialog *ui;
    QTcpSocket * socket = NULL;
    int led1_flag = 1;
    int led2_flag = 1;
    int led3_flag = 1;
    int JDQ_flag = 1;

private slots:
    void DealreqAnswer();
    void DealSendMsg();
    void DealLed1Msg();
    void DealLed2Msg();
    void DealLed3Msg();
    void DealJDQMsg();
};

#endif // DIALOG_H
